//
//  DevicesCurrentTemperature-OFA_IFA_IFC_INA.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/4/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "DevicesCurrentTemperature-OFA_IFA_IFC_INA.h"

@implementation DevicesCurrentTemperature_OFA_IFA_IFC_INA

- (NSString*)freezerId{
    
    return self.freezerIdStr;
}

- (NSString*)uid{
    
    return self.uidStr;
}

- (NSString*)deviceName{
    
    return self.deviceNameStr;
}

- (NSString*)companyId{
    
    return self.companyIdStr;
}

- (NSString*)measureStatus{
    
    return self.measureStatusStr;
}

- (NSString*)measureName{
    
    return self.measureNameStr;
}

- (NSString*)measureDescription{
    
    return self.measureDescriptionStr;
}

- (NSString*)measureSeverity{
    
    return self.measureSeverityStr;
}

- (NSString*)healthStatusCode{
    
    return self.healthStatusCodeStr;
}

- (NSString*)healthStatusText{
    
    return self.healthStatusTextStr;
}

- (NSString*)healthStatusColor{
    
    return self.healthStatusColorStr;
}

- (NSString*)connectionState{
    
    return self.connectionStateStr;
}

- (NSString*)chamberTemperatureSensor{

    return _chamberTemperatureSensorStr;
}

- (NSString*)chamberSetPoint{

    return _chamberSetPointStr;
}

- (NSString *)deviceType{
    
    return self.deviceTypeStr;
}

+ (DevicesCurrentTemperature_OFA_IFA_IFC_INA*)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andDeviceType:(NSString *)deviceType{
    
    DevicesCurrentTemperature_OFA_IFA_IFC_INA *devicesOFAIFAIFCINA = [DevicesCurrentTemperature_OFA_IFA_IFC_INA
                                                      devicesWithFreezerID:freezerID
                                                      andUID:uid
                                                      andDeviceName:deviceName
                                                      andCompanyId:companyID
                                                      andMeasureStatus:measureStatus
                                                      andMeasureName:measureName
                                                      andMeasureDescription:measureDescription
                                                      andMeasureSeverity:measureSeverity
                                                      andHealthStatusCode:healthStatusCode
                                                      andHealthStatusText:healthStatustext
                                                      andHealthStatusColor:healthStatusColor
                                                      andConnectionState:connectionState andDeviceType:deviceType];


    devicesOFAIFAIFCINA.chamberTemperatureSensorStr = chamberTemperatureSensor;
    devicesOFAIFAIFCINA.chamberSetPointStr = chamberSetPoint;
  //  devicesOFAIFAIFCINA.deviceTypeStr = deviceType;
    
    return devicesOFAIFAIFCINA;
}

- (NSString*)occuranceTime{

    return _occuranceTimeStr;
}

- (NSString*)highTemperatureLimit{

    return _highTemperatureLimitStr;
}

- (NSString*)lowTemperatureLimit{

    return _lowTemperatureLimitStr;
}

+ (DevicesCurrentTemperature_OFA_IFA_IFC_INA*)devicesWithFreezerID:(NSString*)freezerID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andDeviceType:(NSString*)deviceType andOccuranceTime:(NSString*)occuranceTime andHighTemperatureLimit:(NSString*)highTemperatureLimit andLowTemperatureLimit:(NSString*)lowTemperatureLimit{

    DevicesCurrentTemperature_OFA_IFA_IFC_INA *devicesOFAIFAIFCINA = [DevicesCurrentTemperature_OFA_IFA_IFC_INA devicesWithFreezerID:freezerID andDeviceType:deviceType];
    
    
    devicesOFAIFAIFCINA.chamberTemperatureSensorStr = chamberTemperatureSensor;
    devicesOFAIFAIFCINA.chamberSetPointStr = chamberSetPoint;
    devicesOFAIFAIFCINA.deviceTypeStr = deviceType;
    devicesOFAIFAIFCINA.occuranceTimeStr = occuranceTime;
    devicesOFAIFAIFCINA.highTemperatureLimitStr = highTemperatureLimit;
    devicesOFAIFAIFCINA.lowTemperatureLimitStr = lowTemperatureLimit;
    
    return devicesOFAIFAIFCINA;
}


//


- (NSString*)occuranceTimeAlarm{
    
    return _occuranceTimeAlarmStr;
}
- (NSString*)alarmCodeAlarm{
    
    return _alarmCodeAlarmStr;
}

- (NSString*)alarmTextAlarm{
    
    return _alarmTextAlarmStr;
}

- (NSString*)measureStatusAlarm{
    
    return _measureStatusAlarmStr;
}

- (NSString*)measureNameAlarm{
    
    return _measureNameAlarmStr;
}

- (NSString*)measureDescriptionAlarm{
    
    return _measureDescriptionAlarmStr;
}

- (NSString*)measureSeverityAlarm{
    
    return _measureSeverityAlarmStr;
}

- (NSString*)cronStatusAlarm{
    
    return _cronStatusAlarmStr;
}

+ (DevicesCurrentTemperature_OFA_IFA_IFC_INA*)alarmDevicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperaturesSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andAlarmCode:(NSString*)alarmCode andAlarmText:(NSString*)alarmText andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andCronStatus:(NSString*)cronStatus{
    
    DevicesCurrentTemperature_OFA_IFA_IFC_INA *deviceOFAIFAIFCINA = [DevicesCurrentTemperature_OFA_IFA_IFC_INA
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceOFAIFAIFCINA.occuranceTimeAlarmStr = occuranceTime;
    deviceOFAIFAIFCINA.alarmCodeAlarmStr = alarmCode;
    deviceOFAIFAIFCINA.alarmTextAlarmStr = alarmText;
    deviceOFAIFAIFCINA.measureStatusAlarmStr = measureStatus;
    deviceOFAIFAIFCINA.measureNameAlarmStr = measureName;
    deviceOFAIFAIFCINA.measureDescriptionAlarmStr = measureDescription;
    deviceOFAIFAIFCINA.measureSeverityAlarmStr = measureSeverity;
    deviceOFAIFAIFCINA.cronStatusAlarmStr = cronStatus;
    
    return deviceOFAIFAIFCINA;
}


- (NSString*)occuranceTimeEvent{
    
    return _occuranceTimeEventStr;
}

- (NSString*)eventCode{
    
    return _eventCodeStr;
}

+ (DevicesCurrentTemperature_OFA_IFA_IFC_INA*)eventDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andEventCode:(NSString*)eventCode{
    
    DevicesCurrentTemperature_OFA_IFA_IFC_INA *deviceOFAIFAIFCINA = [DevicesCurrentTemperature_OFA_IFA_IFC_INA
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceOFAIFAIFCINA.occuranceTimeEventStr = occuranceTime;
    deviceOFAIFAIFCINA.eventCodeStr = eventCode;
    
    return deviceOFAIFAIFCINA;
    
}

@end
